package com.my.springbootelk.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author marshal
 * @Date 2021-07-31 2:20 PM
 */
@RequestMapping("/login")
@RestController
@Slf4j
public class LogController {

    @GetMapping("/test")
    public String test() {
        log.info("info level --> this is info log");
        log.debug("debug level --> this is debug log");
        log.warn("warn level --> this is warn log");
        log.error("error level --> this is error log");
        return "test";
    }

}
